package com.maidou.qiantai.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 os_spu
 * 
 * @author maidou
 * @date 2024-03-13
 */
public class Spu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户信息表id 主键 */
    private Long id;

    /** 分类id */
    @Excel(name = "分类id")
    private Long catalogId;

    /** 品牌id */
    @Excel(name = "品牌id")
    private Long brandId;

    /** 头图 */
    @Excel(name = "头图")
    private String header;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String spuName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String spuDescription;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 重量 */
    @Excel(name = "重量")
    private BigDecimal weight;

    /** 商品介绍 */
    @Excel(name = "商品介绍")
    private String decript;

    /** 热度 */
    @Excel(name = "热度")
    private Long heat;

    /** 销量 */
    @Excel(name = "销量")
    private Long num;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long ware;

    /** 上架状态[0-新建 2 - 下架，1 - 上架] */
    @Excel(name = "上架状态[0-新建 2 - 下架，1 - 上架]")
    private Integer publishStatus;

    /** 逻辑删除，0为未删除，1为删除 */
    @Excel(name = "逻辑删除，0为未删除，1为删除")
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCatalogId(Long catalogId) 
    {
        this.catalogId = catalogId;
    }

    public Long getCatalogId() 
    {
        return catalogId;
    }
    public void setBrandId(Long brandId) 
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }
    public void setHeader(String header) 
    {
        this.header = header;
    }

    public String getHeader() 
    {
        return header;
    }
    public void setSpuName(String spuName) 
    {
        this.spuName = spuName;
    }

    public String getSpuName() 
    {
        return spuName;
    }
    public void setSpuDescription(String spuDescription) 
    {
        this.spuDescription = spuDescription;
    }

    public String getSpuDescription() 
    {
        return spuDescription;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setDecript(String decript) 
    {
        this.decript = decript;
    }

    public String getDecript() 
    {
        return decript;
    }
    public void setHeat(Long heat) 
    {
        this.heat = heat;
    }

    public Long getHeat() 
    {
        return heat;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setWare(Long ware) 
    {
        this.ware = ware;
    }

    public Long getWare() 
    {
        return ware;
    }
    public void setPublishStatus(Integer publishStatus) 
    {
        this.publishStatus = publishStatus;
    }

    public Integer getPublishStatus() 
    {
        return publishStatus;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("catalogId", getCatalogId())
            .append("brandId", getBrandId())
            .append("header", getHeader())
            .append("spuName", getSpuName())
            .append("spuDescription", getSpuDescription())
            .append("price", getPrice())
            .append("weight", getWeight())
            .append("decript", getDecript())
            .append("heat", getHeat())
            .append("num", getNum())
            .append("ware", getWare())
            .append("publishStatus", getPublishStatus())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
